import multiprocessing
import time


def sing(count):
    for i in range(count):
        print('唱歌中')
        time.sleep(0.2)

def dance(count):
    for i in range(count):
        print('跳舞中')
        time.sleep(0.2)

if __name__=='__main__':
    #在__init__.py已经导入了Process类
    danceprocess=multiprocessing.Process(target=dance,name='dance_process',args=(5,))
    singprocess=multiprocessing.Process(target=sing,name='sing_process',kwargs={"count":5})
    print(danceprocess)
    print(singprocess)
    danceprocess.start()
    singprocess.start()
